package beliberda;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;
import com.googlecode.objectify.annotation.Unindex;

import account.Account;

@Entity@Unindex
public class Comment {
	
	@Id
	private long id;
	@Index
    private Account author;
    private String text;
    @Index
    private int mark;
    
    public Comment(){}
    
    public Comment(Account acc, String text){
    	this.setAuthor(acc);
    	this.setMark(0);
    	this.setText(text);
    }

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Account getAuthor() {
		return author;
	}

	public void setAuthor(Account author) {
		this.author = author;
	}


	public int getMark() {
		return mark;
	}

	public void setMark(int mark) {
		this.mark = mark;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
    

}
